package cn.layfolk.goods.web.feign;

import cn.layfolk.daimao.vo.respvo.ResponseVo;
import cn.layfolk.daimao.web.feign.GoodsFeignApi;
import cn.layfolk.daimao.vo.TGoods;
import cn.layfolk.goods.service.TGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Set;

@RestController
public class GoodsFeignClient implements GoodsFeignApi {

    @Autowired
    private TGoodsService goodsService;

    @Override
    public ResponseVo<List<TGoods>> queryByIdList(Set<Long> ids) {

        return ResponseVo.ok(goodsService.queryByIdList(ids));
    }
}
